<template>
  <section class="goods-evaluate" v-if="showEvaluate" :style="outModuleCss">
    <div :style="moduleBgCss" class="module-bg"></div>
    <section class="evaluate-section">
      <div class="evaluate-header">
        <div class="evaluate-title">
          <span></span>
          <p class="title">评价</p>
          <p class="title-num">5000+</p>
        </div>
        <div class="title-right">
          <span>好评度93%</span>
          <i class="iconfont icon-arrow-right"></i>
        </div>
      </div>
      <div class="evaluate-body">
        <span class="no-text">还没有评论</span>
      </div>
    </section>
  </section>
</template>

<script>
import { mixinsModuleCss } from "@/components/DiyNew/diy/mixins/index.js";

export default {
  name: "",
  props: {
    propsData: {
      type: Object,
      default: {},
    },
  },
  mixins: [mixinsModuleCss],
  components: {},
  data() {
    return {};
  },
  mounted() {},
  watch: {},
  computed: {
    showEvaluate() {
      return this.propsData.params.showEvaluate;
    },
  },
  methods: {},
};
</script>

<style lang="scss" scoped>
.goods-evaluate {
  width: 100%;
  position: relative;
  font-family: PingFang SC;
  .evaluate-section {
    width: 100%;
    padding: 18px;
    .evaluate-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      .evaluate-title {
        display: flex;
        align-items: center;
        span {
          width: 3px;
          height: 15px;
          background: #f1270d;
          margin-right: 4px;
        }
        .title {
          font-size: 15px;
          font-weight: 600;
          color: #262626;
          margin: 0 4px 0 0;
        }
        .title-num {
          font-size: 10px;
          font-weight: 600;
          color: #262626;
          margin-bottom: 0;
        }
      }
      .title-right {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        font-size: 12px;
        font-weight: 400;
        color: #8c8c8c;
        .iconfont {
          color: #000000;
          font-size: 15px;
        }
      }
    }
    .evaluate-body {
      width: 100%;
      display: flex;
      justify-content: center;
      .no-text {
        font-size: 13px;
        font-weight: 400;
        line-height: 16px;
        color: #8c8c8c;
        padding: 10px 0;
      }
    }
  }
  .module-bg {
    width: 100%;
    height: 100%;
    z-index: -1;
    position: absolute;
    left: 0;
    top: 0;
  }
}
</style>
